import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import {h} from 'vue';
import {Switch} from 'ant-design-vue';

export const columns: BasicColumn[] = [
        {
            title: '图文配置名称',
            dataIndex: 'configName',
            width: 200,
        },
        {
            title: '图文配置轮播图',
            dataIndex: 'configImg',
            width: 200,
        },
        {
            title: '配置内容',
            dataIndex: 'content',
            width: 200,
        },
        {
            title: '跳转路径',
            dataIndex: 'pathUrl',
            width: 200,
        },
        {
            title: '配置code',
            dataIndex: 'configCode',
            width: 200,
        },
        {
            title: '说明',
            dataIndex: 'remark',
            width: 200,
        },
        {
            title: 'isOpen',
            dataIndex: 'isOpen',
            width: 200,
        },
        {
            title: '分类Id',
            dataIndex: 'categoryId',
            width: 200,
        },
        {
            title: '商品Id',
            dataIndex: 'goodsId',
            width: 200,
        },
        {
            title: '公众号Id',
            dataIndex: 'weChatId',
            width: 200,
        },
        {
            title: '配置排序',
            dataIndex: 'configSort',
            width: 200,
        },
        {
            title: '配置图标',
            dataIndex: 'configIcon',
            width: 200,
        },
        {
            title: '跳转方式',
            dataIndex: 'jumpType',
            width: 200,
        },
        {
            title: '是否删除',
            dataIndex: 'deleted',
            width: 200,
        },
        {
            title: '更新人',
            dataIndex: 'updateUser',
            width: 200,
        },
        {
            title: '更新时间',
            dataIndex: 'updateTime',
            width: 200,
        },
        {
            title: '创建人',
            dataIndex: 'createUser',
            width: 200,
        },
        {
            title: '创建时间',
            dataIndex: 'createTime',
            width: 200,
        },
];

export const searchFormSchema: FormSchema[] = [
];

export const formSchema: FormSchema[] = [
        {
            label: '图文配置名称',
            field: 'configName',
            component: 'Input',
            required: true,
        },
        {
            label: '图文配置轮播图',
            field: 'configImg',
            component: 'Input',
            required: true,
        },
        {
            label: '配置内容',
            field: 'content',
            component: 'Input',
            required: true,
        },
        {
            label: '跳转路径',
            field: 'pathUrl',
            component: 'Input',
            required: true,
        },
        {
            label: '配置code',
            field: 'configCode',
            component: 'Input',
            required: true,
        },
        {
            label: '说明',
            field: 'remark',
            component: 'Input',
            required: true,
        },
        {
            label: 'isOpen',
            field: 'isOpen',
            component: 'Input',
            required: true,
        },
        {
            label: '分类Id',
            field: 'categoryId',
            component: 'Input',
            required: true,
        },
        {
            label: '商品Id',
            field: 'goodsId',
            component: 'Input',
            required: true,
        },
        {
            label: '公众号Id',
            field: 'weChatId',
            component: 'Input',
            required: true,
        },
        {
            label: '配置排序',
            field: 'configSort',
            component: 'Input',
            required: true,
        },
        {
            label: '配置图标',
            field: 'configIcon',
            component: 'Input',
            required: true,
        },
        {
            label: '跳转方式',
            field: 'jumpType',
            component: 'Input',
            required: true,
        },
        {
            label: '是否删除',
            field: 'deleted',
            component: 'Input',
            required: true,
        },
        {
            label: '更新人',
            field: 'updateUser',
            component: 'Input',
            required: true,
        },
        {
            label: '更新时间',
            field: 'updateTime',
            component: 'Input',
            required: true,
        },
        {
            label: '创建人',
            field: 'createUser',
            component: 'Input',
            required: true,
        },
        {
            label: '创建时间',
            field: 'createTime',
            component: 'Input',
            required: true,
        },
];
